package com.yjck.fm.spend.service;

import com.yjck.fm.common.QueryResult;
import com.yjck.fm.spend.dao.SpendTypeDAO;

public class SpendTypeService {
	private SpendTypeDAO spendTypeDAO;


	public void setSpendTypeDAO(SpendTypeDAO spendTypeDAO) {
		this.spendTypeDAO = spendTypeDAO;
	}

	public QueryResult getTypes(String typeName,int start,int limit){
		return spendTypeDAO.getTypes(typeName,start,limit);
	}

	public boolean addType(String typeName,int id) {
		return spendTypeDAO.addType(typeName,id);
	}

	public boolean modifyType(String typeName, String sid, int updateby) {
		return  spendTypeDAO.modifyType( typeName,sid,updateby);
	}

	public boolean delType(String sid) {
		return spendTypeDAO.delType(sid);
	}

	public  boolean isExist(String typeName) {
		return spendTypeDAO.isExist(typeName);
	}

}
